package com.study.base.io;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

/**
 * @description: IoDemo1
 * @date: 2021/1/14 15:37
 * @author: hcm
 * @version: 1.0
 */
public class IoDemo1 {
    public static void main(String[] args) {
        File f1 = new File("D:\\20210114.txt");
        if(f1.exists()&&f1.length()>0){
            try {
                FileInputStream fileInputStream = new FileInputStream(f1);
            } catch (FileNotFoundException e) {
                e.printStackTrace();
                System.out.println("文件找不到");
            }
        }
    }
}
